import request from '@/utils/request'

const api = {
  operLog: '/monitor/sysOperationLog',
  loginLog: '/monitor/sysLoginLog',
  server: '/monitor/server'
}

export default api

// LoginLog
export function getLoginLogList(parameter) {
  return request({
    url: api.loginLog + '/getSysLoginLogPageList',
    method: 'get',
    params: parameter
  })
}
// OperationLog
export function getOperationLogList(parameter) {
  return request({
    url: api.operLog + '/getSysOperationLogPageList',
    method: 'get',
    params: parameter
  })
}

export function getServer() {
  return request({
    url: api.server + '/getInfo',
    method : 'get'
  })
}
